#include <iostream>
#include "functions.h"

int main()
{
	float x[20];
	int l,min, max;
	cout<<" Length of vector : ";
	cin>>l;
	readVector(x, l);
	min=minofVector(x, l);
	max=maxofVector(x, l);
	printVector(x, l);
	swap_minmaxVector(x, l, min, max);
	printVector(x, l);	
	return 0;
	
}
